package com.zlz.open.ugs.config.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
public class GatewayEntrance {

    @GetMapping("/test")
    public Mono<String> test() {
        return Mono.just("est");
    }

    @GetMapping("/api/test/json")
    public Mono<String> testJSON(@RequestParam String req) {
//        response.addHeader("content-type", "application/json");
        return Mono.just("{\"resp\":" + req + "}");
    }
}
